package com.zsrt.java.day20161226.xww.demo3.demo10;

import java.util.Scanner;

public class Table {

	public static void demo10(int a){
		int outer=1;
		while(outer<=a){
			int inner=1;
			while(inner<=outer){
				System.out.print(outer+"*"+inner+"="+outer*inner);
				System.out.print("\t");
				inner++;
			}
			System.out.println();
			outer++;
		}
	
	}
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.println("想打印的乘法表如：输入数字1到9");
		int a=sc.nextInt();
		demo10(a);
		sc.close();
	}
}
